import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '工作内容',
    align:"center",
    dataIndex: 'jobContent'
  },
  {
    title: '质量要求',
    align:"center",
    dataIndex: 'qualityRequirements'
  },
  {
    title: '下次汇报时间',
    align:"center",
    dataIndex: 'nextReportTime'
  },
  {
    title: '责任部门',
    align:"center",
    dataIndex: 'responseDepart_dictText'
  },
  {
    title: '配合部门任务状态',
    align:"center",
    dataIndex: 'coopDepartTaskstatus'
  }
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
];

// 高级查询数据
export const superQuerySchema = {
  job_content: {title: '工作内容',order: 0,view: 'text', type: 'string',},
  quality_requirements: {title: '质量要求',order: 1,view: 'text', type: 'string',},
  response_depart: {title: '责任部门',order: 3,view: 'list', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',},
  next_report_time: {title: '下次汇报时间',order: 2,view: 'datetime', type: 'string',},
};

/**
 * 流程表单调用这个方法获取formSchema
 * @param param
 */
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
